//
//  UILabel+Extension.m
//  guahao
//
//  Created by osx on 16/9/25.
//  Copyright © 2016年 osx. All rights reserved.
//

#import "UILabel+Extension.h"

@implementation UILabel (Extension)

+(UILabel*)initwithTitle:(NSString *)title fontsize:(CGFloat)fontsize color:(UIColor *)color{
    
    
    UILabel *lb = [[UILabel alloc] init];
    lb.text = title;
    lb.textColor = color;
    [lb setFont:[UIFont systemFontOfSize:fontsize]];
    lb.numberOfLines = 0;
    lb.textAlignment = NSTextAlignmentCenter;
    
    return lb;
}

@end
